<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "registration_log".
 *
 * @property integer $no
 * @property integer $member_no
 * @property integer $create_day
 * @property integer $addtime
 * @property integer $is_share
 */
class ClockInLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'iliketry.registration_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['member_no', 'create_day', 'addtime'], 'required'],
            [['member_no', 'create_day', 'addtime', 'is_share'], 'integer'],
            [['member_no', 'create_day'], 'unique', 'targetAttribute' => ['member_no', 'create_day'], 'message' => 'The combination of Member No and Create Day has already been taken.'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'no' => 'No',
            'member_no' => 'Member No',
            'create_day' => 'Create Day',
            'addtime' => 'Addtime',
            'is_share' => 'Is Share',
        ];
    }
}
